Fix a bug, and also fixes the build with some gcc4 versions.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 21 Mar 2006 10:34:41 +0000 (11:34 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 21 Mar 2006 10:34:41 +0000 (11:34 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/genapic/es7000plat.c

index 032ac972d714baa3bf6c9430958ab7a42f62a2c4..1d7d0d57768b6c797610d82bc4e9f1a439dc195a 100644 (file)
@@ -165,7 +165,7 @@ find_unisys_acpi_oem_table(unsigned long *oem_addr)
        unsigned long                   rsdp_phys = 0;
        struct acpi_table_header        *header = NULL;
        int                             i;
-       struct acpi_table_sdt           sdt;
+       struct acpi_table_sdt           sdt = { 0 }; /* initialise sdt.count */
 
        rsdp_phys = acpi_find_rsdp();
        rsdp = __va(rsdp_phys);